package com.junjiao.util.java.image;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

/**
 * 生成缩略图线程
 * 
 * @author fqm
 * 
 */
public class ZoomThread extends Thread {

	private String filePath;

	private Set imgTypeSet = new HashSet();

	public void run() {
		for (Iterator imgIt = imgTypeSet.iterator(); imgIt.hasNext();) {
			ZoomManage.getZoomImageByPath(filePath, (String) imgIt.next());
		}
	}

	public ZoomThread() {

	}

	public ZoomThread(String filePath, Set imgTypeSet) {
		super();
		this.filePath = filePath;
		this.imgTypeSet = imgTypeSet;
	}

	public Set getImgTypeSet() {
		return imgTypeSet;
	}

	public void setImgTypeSet(Set imgTypeSet) {
		this.imgTypeSet = imgTypeSet;
	}

}
